package com.matrix;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Common {

    public static final String rootPath = System.getProperty("user.dir");

    public static final String ENCODING = "utf-8";

    private static Pattern p = Pattern.compile("\\s*|t|\r|\n");

    // 字符串去空格、tab、回车
    public static String replaceBlank(String str) {
        String dest = "";
        if (str != null) {

            Matcher m = p.matcher(str);
            dest = m.replaceAll("");
        }
        return dest;
    }

}
